import request from '@/utils/request'

// 登录注册侧边栏广告位列表
export function getAdListAPI(params) {
  return request({
    url: '/admin/advertise/queryadvertise',
    method: 'get',
    params
  })
}

// 添加登录注册侧边栏广告位列表
export function addAdListAPI(params) {
  return request({
    url: '/admin/advertise/addadvertise',
    method: 'post',
    params
  })
}

// 删除登录注册侧边栏广告位列表
export function deleteAdListAPI(params) {
  return request({
    url: '/admin/advertise/deladvertise',
    method: 'post',
    params
  })
}

// 根据ID查询登录注册侧边栏广告位列表详情
export function getAdDetailAPI(params) {
  return request({
    url: '/admin/advertise/queryadvertiseonid',
    method: 'get',
    params
  })
}

/**
 * 更新广告信息
 */
export function updatePosterAPI(params) {
  return request({
    url: '/admin/advertise/updateadvertise',
    method: 'POST',
    params
  })
}
